#ifndef FGI__CONFIG__MODULE__H__
#define FGI__CONFIG__MODULE__H__

#include <iostream>
#include "IModule.h"
#include "IPlugin.h"
#include <string>
#include <map>

namespace FragrantGrass
{
	class IConfigModule
		: public IModule
	{
		DECLARE_MODULE_NAME(IConfigModule)
	public:
		enum FileParseType
		{
			FPT_SERVER_DATA = 1,
		};
	public:
		typedef std::function<void*(const std::string & strFileName, std::string & strContent)> FILE_PARSE_FUNCTION;
	public:
		virtual void SetConfigPath(const std::string& strPath) = 0;
		virtual void* GetConfigDatas(FileParseType type) = 0;
	};
}

#endif//FGI__CONFIG__MODULE__H__